package dawn.jxufe.community.dao;

import dawn.jxufe.community.entity.User;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

/**
 * @author dawn21
 * @version 1.0
 * @date 2022/6/27 17:19
 * @component
 */
@Mapper
public interface UserMapper {
    User selectById(int id);
    User selectByName(String username);
    User selectByEmail(String email);
    int insertUser(User user);
    int updateStatus(int id, int status);//更新状态
    int updateHeader(int id, String headerUrl);//更新头像
    int updatePassword(int id, String password);
}
